package com.ly;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EnableJpaRepositories({"com.ly.dao"})//扫描repository
@EntityScan("com.ly.dto.**")//扫描实体
public class JpatApplication {

	public static void main(String[] args) {
		SpringApplication.run(JpatApplication.class, args);
	}
}
